function checkvote(f)
{
	for(var i = 0; i < f.voteitem.length; i++)
		if (f.voteitem[i].checked) return true;
	alert('请选择投票项！');
	return false;
}

var voteid = 0;
function listvotedusers(id)
{
	voteid = id;
	var request  = new Ajax(); 
	request.get("vote.aspx?action=listusers&voteid=" + id + "&timestamp=" + (new Date().getTime()), showresult);
}

function showresult(xmlobj)
{
	if (xmlobj.readyState == 4)
	{
		var response	= xmlobj.responseText;
		var result		= $("listuser" + voteid);
		result.innerHTML= response;
		
	}
}

function AdjustSignature()
{
	var objs = document.getElementsByClassName("sign");
	
	for (var i = 0; i < objs.length; i++)
	{
		if (objs[i].offsetHeight > 59)
		{
			objs[i].style.height = "59px";
		}
	}
}

function runcode(e)
{
	var w = window.open('');
	w.document.write(htmldecode(e.nextSibling.innerHTML));
}